package com.lxp.eduService.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxp.eduService.domain.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxp.eduService.domain.vo.CourseInfo;
import com.lxp.eduService.domain.vo.front.CourseFrontInfoVo;
import com.lxp.eduService.domain.vo.publish.CoursePublishVo;
import com.lxp.eduService.domain.vo.queryVo.CourseFrontVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author lxp
 * @since 2021-11-20
 */
public interface EduCourseService extends IService<EduCourse> {

    String addCourse(CourseInfo courseInfo);

    CourseInfo getCourseInfo(String courseId);

    //修改课程
    void updateCourse(CourseInfo courseInfo);

    //最终发布课程
    CoursePublishVo publishCourse(String courseId);

    void deleteByCourseId(String courseId);

    Map<String, Object> getCourseListFront(Page<EduCourse> page, CourseFrontVo courseFrontVo);

    CourseFrontInfoVo getCourseFrontInfo(String courseId);

    Page<EduCourse> selectByName(String courseName, long current, long limit);
}
